﻿namespace Digitalmes.Events
{
    public class TagValueChangedEventArgs : EventArgs
    {
        public object OldValue { get; }
        public object NewValue { get; }
        public DateTime ChangeTime { get; }

        public string Tag { get; }
        public object Value { get; }

        public TagValueChangedEventArgs(string tag, object value)
        {
            Tag = tag;
            Value = value;
        }


        public TagValueChangedEventArgs(object oldValue, object newValue)
        {
            OldValue = oldValue;
            NewValue = newValue;
            ChangeTime = DateTime.Now;
        }
    }
}